package cn.unknownerror.ueteam.gui;

import java.util.ArrayList;
import java.util.List;

public class FrameManager {

    private static final FrameManager manager=new FrameManager();

    public static FrameManager getManager() {
        return manager;
    }

    private List<AbstractFrame> frames;

    private FrameManager(){
        this.frames=new ArrayList<>();
    }

    public List<AbstractFrame> getFrames() {
        return new ArrayList<>(frames);
    }

    public void add(AbstractFrame frame){
        frames.add(frame);
    }
}
